﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Manage_Emp3_Emp3Detail : AdminPageBase
{
    protected int cMenuId;
    protected int empid = 0;
    private string returnURL;
    protected void Page_Load(object sender, EventArgs e)
    {
        CheckAdmin();
        GetUserPermisions();
        cMenuId = MenuId;
        returnURL = Request.QueryString["returnURL"].ToString();
        GetEmpId();
    }
    protected void CheckAdmin()
    {
        if (AdminSessionHelper.UserDetails == null)
        {
            JsHelper.TopAlertRedirect("请先登录", "../login.aspx", this.Page);
        }


    }
    protected void GetEmpId()
    {
        if (Request.QueryString["id"] != null)
        {
           empid = Convert.ToInt32(Request.QueryString["id"]);

        }
    }
    protected void btnreturn_Click(object sender, EventArgs e)
    {
        //Response.Redirect("Emp3.aspx?MenuId=" + MenuId);
        Response.Redirect(returnURL);
    }
}